﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Esign.Net.Output
{
    [Serializable]
    public class OutputBase<T>
    {
        /// <summary>
        /// 错误编码大于0 
        /// </summary>
        [JsonProperty("code")]
        public int Code { get; set; }

        /// <summary>
        /// 信息(成功会返回'成功')
        /// </summary>
        [JsonProperty("message")]
        public string Message { get; set; }

        /// <summary>
        /// 数据体
        /// </summary>
        [JsonProperty("data")]
        public T Data { get; set; }

    }
}
